package com.leeyu.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface ResendMapper {
    @Insert("insert into resend " +
            "(id, message, exchange, routing_key,send_time)" +
            "values " +
            "(#{correlationId}, #{message}, #{exchange}, #{routingKey}, #{sendTime})")
    void saveMessage(Map<String,String> map);
}
